#include "OscarFileTransfareTask.h"

namespace Impp
{

OscarFileTransfareTask::OscarFileTransfareTask(Oscar* oscar, Buddy* buddy, qword cookie, ActionId id,const wxString & fileName, word fileCount, dword totalSize, const FileTransfareInfo & info) :
	Task(TASK_FILE_RECEIVE,oscar,TASK_HANDLE_COOKIE,cookie,10),
	buddy(buddy),
	id(id),
	fileName(fileName),
	fileCount(fileCount),
	totalSize(totalSize),
	info(info)
{
	con = new FileTransfareCon();
	con->connect(info);
}

OscarFileTransfareTask::~OscarFileTransfareTask()
{

}

bool OscarFileTransfareTask::checkForTimeOut(const time_t & now){
	//This Task can not time out, so return allways false
	return false;
}

ActionId OscarFileTransfareTask::getActionId(){
	return id;
}

qword OscarFileTransfareTask::getCookie(){
	return Task::getHandle();
}



void OscarFileTransfareTask::timedOut(){
	wxLogDebug(wxT("Can never be called!"));
}

}
